<template>
    <div class="panel">
        <div class="title">
            <span>{{title}}</span>
        </div>
        <div>
            <slot></slot>
        </div>
    </div>
</template>

<script>
    export default {
        props:['title']
    }
</script>

<style scoped>
.panel {
    display: flex;
    flex-direction: column;
    margin: 1rem .5rem;
    width: calc(100vw - 1rem);
    border: 1px solid #E9E9E9;
    border-radius: .5rem;
}
.panel>.title {
    font-size: 1.1rem;
    width: 100%;
    line-height: 2.5rem;
    border-bottom: 1px solid #E9E9E9;
    background-color: #F0F0F2;
}
.panel>.title>span{
    margin-left: 1rem;
    color: #333;
}
</style>